package grpc

import (
	"context"
	"gitee.com/kmyss/gf-ex/yscmd"
)

type FlagMqBuilder struct {
	yscmd.FlagBuilderCore
}

func (b *FlagMqBuilder) Init(ctx context.Context, group ...string) {
	b.FlagBuilderCore.Init(ctx, group...)
	b.F.Short = ""
	b.F.Long = "mq"
	b.F.Description = `
        是否启动 MQ 服务`
	b.F.DefaultValue = false
}

func FlagMq(ctx context.Context, group ...string) *yscmd.Flag {
	build := &FlagMqBuilder{}
	build.Init(ctx, group...)
	return build.Flag()
}
